﻿using JTTD.Domain.Dtos;
using JTTD.Domain.Dtos.ShopActivity.Request;
using JTTD.Domain.Dtos.ShopActivity.Response;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace JTTD.Domain.IService
{
    /// <summary>
    /// 店铺活动服务
    /// </summary>
    public  interface IShopActivityService: IDependency
    {
        /// <summary>
        /// 设置店铺活动
        /// </summary>
        /// <param name="shopId"></param>
        /// <param name="dto"></param>
        /// <returns></returns>
        Task<ApiResult<bool>> SetShopActivity(int shopId,SetShopActivityRequestDto dto);

        /// <summary>
        /// 更改店铺活动启用状态
        /// </summary>
        /// <param name="shopActivityId"></param>
        /// <param name="isEnable"></param>
        /// <returns></returns>
        Task<ApiResult<bool>> ChangeEnable(int shopActivityId,bool isEnable);

        /// <summary>
        /// 删除店铺活动
        /// </summary>
        /// <param name="shopActivityId"></param>
        /// <returns></returns>
        Task<ApiResult<bool>> DeleteShopActivity(int shopActivityId);

        /// <summary>
        /// 获取单个店铺活动
        /// </summary>
        /// <param name="shopActivityId"></param>
        /// <returns></returns>
        Task<ApiResult<ShopActivityInfoResponseDto>> GetShopActivity(int shopActivityId);

        /// <summary>
        /// 分页获取店铺活动列表
        /// </summary>
        /// <param name="shipId"></param>
        /// <param name="dto"></param>
        /// <returns></returns>
        Task<ApiResult<PageResult<ShopActivityInfoResponseDto>>> GetShopActivityPageList(int shipId,SearchShopActivityRequestDto dto);

        /// <summary>
        /// 获取启用进行中的店铺活动
        /// </summary>
        /// <param name="shopId"></param>
        /// <returns></returns>
        Task<ApiResult<List<ShopActivityInfoResponseDto>>> GetEnableShopActivityList(int shopId);

        /// <summary>
        /// 参与店铺活动
        /// </summary>
        /// <param name="userId"></param>
        /// <param name="shopActivityId"></param>
        /// <returns></returns>
        Task<ApiResult<bool>> JoinShopActivity(int userId,int shopActivityId);

    }
}
